package com.itheima.homework.test2;

/**
 * @author jiangxun
 * @date 11-19-2024
 */
public class Cook extends Employee {
    public Cook(int workNumber, String name, double salary) {
        super(workNumber, name, salary);
    }

    @Override
    public void work() {
        System.out.println("工号为:" + getWorkNumber() + ",姓名为:" + getName() + ",工资为" + getSalary() + "的厨师在工作:炒菜");
    }

    @Override
    public void eat() {
        System.out.println("工号为:" + getWorkNumber() + ",姓名为:" + getName() + ",工资为" + getSalary() + "的厨师在吃饭:吃大餐");
    }
}
